package com.zw.mes.module.cost.controller;


import com.zw.mes.base.BaseController;
import com.zw.mes.module.cost.model.DsnProStruct;
import com.zw.mes.module.cost.service.SheetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


/**
 * @Description: 添加技术说明
 * @Author: China.wsg
 * @Date: 2020/10/31 13:20
 */
@Controller
@RequestMapping("/tecout/tecnote")
@SuppressWarnings("all")
public class DsnTecNoteController extends BaseController {
    @Autowired
    private SheetService sheetService;
    /**
     * 查询部分
     */
    @GetMapping("/part/list")
    @ResponseBody
    public List<DsnProStruct> partList(String code, String type) {
        return sheetService.findPartByProjectCode(code, type);
    }
}
